package com.esteel.settlement.pa.packet;

import java.util.Date;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.format.annotation.DateTimeFormat;

/**
 *请求包：交易网－> 监管系统
 * 查会员出入金账号的银行余额
 * zhouwentong
 */
@XmlRootElement(name="Result")
@XmlAccessorType(XmlAccessType.FIELD)
public class CheckMemberAccountBankBalancePB1020 extends PaPacket{

	private static final long serialVersionUID = 6120849498875460138L;
	 //资金汇总账号
	 @XmlElement(name="SupAcctId")
	 @Length(max=32)
	 @NotEmpty
	 private String supAcctId;
	 //子账户
	 @XmlElement(name="CustAcctId")
	 @Length(max=32)
	 @NotEmpty
	 private String custAcctId;
	 //交易网会员代码
	 @XmlElement(name="ThirdCustId")
	 @Length(max=32)
	 @NotEmpty
	 private String thirdCustId;
	 //会员名称
	 @XmlElement(name="CustName")
	 @Length(max=120)
	 @NotEmpty
	 private String custName;
	 //出入金账号  用于查询的账号或卡号
	 @XmlElement(name="AcctNo")
	 @Length(max=32)
	 @NotEmpty
	 private String acctNo;
	 
	 @XmlElement(name = "BeginDate")
		@DateTimeFormat(pattern = "yyyyMMdd")
		private Date beginDate;
		// 结束日期
		@XmlElement(name = "EndDate")
		@DateTimeFormat(pattern = "yyyyMMdd")
		private Date endDate;
	 
	public String getSupAcctId() {
		return supAcctId;
	}


	public void setSupAcctId(String supAcctId) {
		this.supAcctId = supAcctId;
	}


	public String getCustAcctId() {
		return custAcctId;
	}


	public void setCustAcctId(String custAcctId) {
		this.custAcctId = custAcctId;
	}


	public String getThirdCustId() {
		return thirdCustId;
	}


	public void setThirdCustId(String thirdCustId) {
		this.thirdCustId = thirdCustId;
	}


	public String getCustName() {
		return custName;
	}


	public void setCustName(String custName) {
		this.custName = custName;
	}


	public String getAcctNo() {
		return acctNo;
	}


	public void setAcctNo(String acctNo) {
		this.acctNo = acctNo;
	}


	
	
	public Date getBeginDate() {
		return beginDate;
	}


	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}


	public Date getEndDate() {
		return endDate;
	}


	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}


	@Override
	protected String[] order() {
		String[] args={"supAcctId","custAcctId","thirdCustId","custName","acctNo","reserve"};
		return args;
	}


	@Override
	protected String tranFunc() {
		return "1020";
	}

}
